package com.cyq.dascma.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyq.dascma.dto.RuleDto;
import com.cyq.dascma.entity.Rule;
import com.cyq.dascma.mapper.RuleMapper;
import com.cyq.dascma.service.RuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * dingwen
 * 2021/4/4 22:13
 **/
@Service
public class RuleServiceImpl extends ServiceImpl<RuleMapper, Rule> implements RuleService {
    private final RuleMapper ruleMapper;

    @Autowired
    RuleServiceImpl(RuleMapper ruleMapper) {
        this.ruleMapper = ruleMapper;
    }

    @Override
    public List<RuleDto> findRuleInfoList(Map<String, Object> params) {
        return ruleMapper.findRuleInfoList(params);
    }
}
